'use strict';

module.exports = app => {
    const {
        STRING,
        INTEGER
    } = app.Sequelize;
    const class_manage = app.model.define('class_manage',{
        id:{
            type:INTEGER,
            primaryKey:true,
            autoIncrement:true,
            allowNull:false,
            comment:"班级管理ID"
        },
        class_name:{
            type:STRING,
            defaultValue:null,
            comment:"班级"
        },
        project:{
            type:STRING,
            defaultValue:null,
            comment:"项目"
        },
        class_teacher:{
            type:STRING,
            defaultValue:null,
            comment:"班主任"
        },
        class_state:{
            type:STRING,
            defaultValue:null,
            comment:"班级状态"
        },
        class_sort:{
            type:INTEGER,
            allowNull:false,
            comment:"班级排序"
        }
    })
    class_manage.associate = function () {
        
    }
}